package com.hqyj.pojo;

import java.io.Serializable;
import java.util.List;

public class Department implements Serializable {
    private Long id;

    private String number;

    private String name;

    private String location;

    private String superNo;

    public List<Employee> getList() {
        return list;
    }

    public void setList(List<Employee> list) {
        this.list = list;
    }
    /*一对多查询*/
    private List<Employee> list;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getSuperNo() {
        return superNo;
    }

    public void setSuperNo(String superNo) {
        this.superNo = superNo;
    }


    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                ", superNo='" + superNo + '\'' +
                ", list=" + list +
                '}';
    }
}